import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type SearchPeriod } from "../../interface";

/**
 * /dashboard/pieChart/{type}
 */
export function postDashboardPieChartByType(params: PostDashboardPieChartByTypeParams, input: SearchPeriod, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<any>>(`/dashboard/pieChart/${params.type}`, input, config);
}

export interface PostDashboardPieChartByTypeParams {
    type: string;
}
